﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonSearchModule
{
    /// <summary>
    /// 索引结果对象
    /// </summary>
    [Serializable]
    public class SearchResult
    {
        private TimeSpan _RunTime = TimeSpan.Zero;
        private IList<Search_Entity> _Result = new List<Search_Entity>();

        public SearchResult()
        {
            Total = 0;
        }

        /// <summary>
        /// 搜索结果数
        /// </summary>
        public int Total { get; set; }

        /// <summary>
        /// 对外公开的结果集
        /// </summary>
        public IList<Search_Entity> Result
        {
            get { return _Result; }
            set { _Result = value; }
        }

        /// <summary>
        /// 搜索耗时
        /// </summary>
        public TimeSpan RunTime
        {
            get { return _RunTime; }
            set { _RunTime = value; }
        }
    }
}